//
//  MYGeneralAlertView.h
//  JQLive
//
//  Created by Bruce on 2020/3/7.
//  Copyright © 2020 JQLive. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class MYGeneralAlertView;

typedef void (^ MYGeneralAlertViewCompletion)(MYGeneralAlertView *vc);
typedef void (^ MYGeneralAlertViewCompletion2)(MYGeneralAlertView *vc);

@interface MYGeneralAlertView : UIView

- (void)showWithNav:(UINavigationController *)nav
         completion:(MYGeneralAlertViewCompletion)completion;

- (void)showWithNav:(UINavigationController *)nav
   cancelCompletion:(MYGeneralAlertViewCompletion2)cancelCompletion;
/// 显示右侧按钮返回
/// @param completion <#completion description#>
- (void)showCompletion:(MYGeneralAlertViewCompletion)completion;

@property (nonatomic, strong) UIColor *my_rightButtonColor;
@property (nonatomic, copy) NSString *my_rightButtonTitle;
@property (nonatomic, copy) NSString *my_leftButtonTitle;
@property (nonatomic, copy) NSString *my_content;
@property (nonatomic, copy) NSString *my_desc;
@property (nonatomic, strong) UIColor *my_bgColor;

/// 设置描述内容的文本对齐方式
@property(nonatomic, assign) NSTextAlignment descTextAlignment;
@end

NS_ASSUME_NONNULL_END
